#!/bin/sh

IP_STR=`ifconfig $IFACE | grep inet | awk '{FS=":"} {print $2}' | sed 's/[^0-9\.]//g'`
IFACE_STR="$IFACE: $IP_STR"

if ping -4 -c 1 -w 1 -I $IFACE www.google.com; then
	IFACE_STR="$IFACE_STR @"
fi

echo 0 > /sys/class/graphics/fb0/blank
echo -e "\033[1;33m$IFACE_STR\033[m" > /dev/tty0

